import { postAction,getAction } from '@/api/manage'
// 通用
export const pattern = '/basemgt-peoples/peoplePackage'
export const newPattern = '/basemgt-peoples/real/time'

export const tagList = (key, params) => getAction(`${pattern}/${key}/getPeoplePackageTagList`, params)
export const bagList = (key, params) => getAction(`${pattern}/${key}/getPeoplePackageInit`, params)
export const tagListCreate = (key, params) => postAction(`${pattern}/${key}/addPeoplePackageTag`, params)
export const tagCreate = (key, params) => postAction(`${pattern}/${key}/addPeoplePackageTagDetail`, params)
export const tagListUpdate = (key, params) => postAction(`${pattern}/${key}/updatePeoplePackageTag`, params)
export const tagUpdate = (key, params) => postAction(`${pattern}/${key}/updatePeoplePackageTagDetail`, params)
export const tagStatesUpdate = (key, params) => getAction(`${pattern}/${key}/updatePeoplePackageTagStates`, params)
export const connectBag = (key, params) => postAction(`${pattern}/${key}/bandPeoplePackageTagDetail`, params)

export const peopleList = (key, params) => getAction(`${pattern}/${key}/getPeoplePackageDistribute`, params)
export const areaList = (key, params) => getAction(`${pattern}/${key}/getCAreaList`, params)
export const getBrandList = (key, params) => getAction(`${pattern}/${key}/getDamoHsah`, params)


export const bagListUpdate = (key, params) => postAction(`${pattern}/${key}/updatePeoplePackageDistribute`, params)
export const syncPeople = (key, params) => postAction(`${pattern}/${key}/syncPeoplePackage2Channel`, params)
export const changePeople = (key, params) => getAction(`${pattern}/${key}/bindMember4PeoplePackageById`, params)

//配置人群包页面
export const peopleSetList = (key, params) => postAction(`${newPattern}/${key}/pageInfo`, params)
export const disablePeopleSet = (key, params) => getAction(`${newPattern}/${key}/disableById`, params)
export const enablePeopleSet = (key, params) => getAction(`${newPattern}/${key}/enableById`, params)
export const useTypeList = (key, params) => getAction(`${newPattern}/${key}/getRealTimeAppType`, params)
export const brandList = (key, params) => getAction(`${newPattern}/${key}/getBrandForBoJun`, params)
export const insertPeoples = (key, params) => postAction(`${newPattern}/${key}/insertRealTimePeoplesBase`, params)
export const updatePeoples = (key, params) => postAction(`${newPattern}/${key}/updateRealTimePeoplesBase`, params)
export const getSetDetail = (key, params) => getAction(`${newPattern}/${key}/getRealTimePeoplesBaseById`, params)
export const getRelStore = (key, params) => getAction(`${newPattern}/${key}/exportRelStore`, params)
export const getCDepartList = (key, params) => getAction(`${newPattern}/${key}/getCDepartList`, params)
export const importStore = (key, params) => getAction(`${newPattern}/${key}/importStore`, params)
